import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

export function getDevList(data) {
  return request({
    url: '/alm/dev/list',
    method: 'get',
    params: data
  })
}

export function getDevCommands(query) {
  return request({
    url: '/alm/dev/getDevCommands',
    method: 'post',
    params: query
  })
}

export function sendDevMeterCommand(data) {
  return request({
    url: '/alm/dev/sendDevMeterCommand',
    method: 'post',
    data: data
  })
}

export function sendLineCommand(data) {
  return request({
    url: '/alm/dev/sendLineCommand',
    method: 'post',
    data: data
  })
}

export function getDevMonitorParams(query) {
  return request({
    url: '/alm/dev/getDevMonitorParams',
    method: 'post',
    params: query
  })
}

export function setDevMonitorParams(data) {
  return request({
    url: '/alm/dev/setDevMonitorParams',
    method: 'put',
    data: data
  })
}

export function editIsTop(data) {
  return request({
    url: '/alm/dev/editIsTop',
    method: 'post',
    data: data
  })
}


export function queryBycurr(data) {
  return request({
    url: '/alm/dev/queryBycurr',
    method: 'get',
    params: data
  })
}

export function setTxValue(data) {
  return request({
    url: '/alm/dev/setTxValue',
    method: 'post',
    data: data
  })
}


export function delBycurr(data) {
  return request({
    url: '/alm/dev/delBycurr',
    method: 'get',
    params: data
  })
}


export function setNetWOrkTypeValue(data) {
  return request({
    url: '/alm/dev/setNetWOrkTypeValue',
    method: 'get',
    params: data
  })
}